package design.builder;

public class XiaoMiBuilder extends AbstractBuilder{

    public XiaoMiBuilder(){
        phone = new Phone();
    }

    @Override
    AbstractBuilder customCpu(String cpu) {
        phone.cpu=cpu;
        return this;
    }

    @Override
    AbstractBuilder customMen(String mem) {
        phone.mem=mem;
        return this;
    }

    @Override
    AbstractBuilder customDisk(String disk) {
        phone.disk=disk;
        return this;
    }

    @Override
    AbstractBuilder customCam(String cam) {
        phone.cam=cam;
        return this;
    }
}
